include ../../../libs/mixins/form
include ../../../libs/mixins/area
include ../../../libs/mixins/grid
include ../../../libs/mixins/table

.message: .new
  +form("saveForm")
    +operateArea("新建推送任务")
    +form-group("推送任务名称：")
      span {{message.description}}
    +form-group("计划推送时间：")
      span {{message.appointSendTime | date: 'yyyy-MM-dd H:mm'}}
    +form-group("推送对象：")
      span(ng-if="message.isGlobal==true") 全体
      span(ng-if="message.isGlobal!=true") 部分
      span(ng-if="message.message.appPackage == 'info.yihua.manager'") 胖鸟工长app用户
      span(ng-if="message.message.appPackage == 'info.yihua.master'") 胖鸟装修app用户
      span(ng-if="message.isGlobal!=true") ：
      p(ng-if="message.isGlobal!=true")
        span(ng-repeat="uid in message.uidList")
          | {{uid}}
          i(ng-if="$index<message.uidList.length-1") ，
    +form-group("推送内容：")
      span {{message.message.content}}
    +form-group("跳转URL\n(可选)：")
      span {{message.message.refer}}
    div.pushResult
      dl
        dt 操作人：
        dd {{message.operatorName}}
      dl
        dt 操作时间：
        dd {{message.createTime | date: 'yyyy-MM-dd H:mm'}}
    div.pushResult
      dl
        dt 推送状态：
        dd {{message.operatorName}}
      dl
        dt 推送结果：
        dd
          span 计划推送
          span(ng-if="message.isGlobal == true") 全部用户
          span(ng-if="message.isGlobal != true") {{message.uidList.length}}
          i |
        dd
          span 实际推送推送  {{message.totalCount}}
          i |
        dd
          span 打开数  {{message.readCount}}
          i |
        dd
          span 打开率  {{message.readCount/message.totalCount*100 | number:0}}%
    .text-center
      +cancel("返回")(ng-click="cancel()")

